You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxInt Class > TMtxInt Methods > TMtxInt.Equal Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxInt.Equal Method

Compares two matrices.

Syntax
C#
Visual Basic
public bool Equal([In] TMtxInt Mtx);

Compares Mtx with the calling matrix and returns true if the matrices are equal (if all elements match in position and value). Tolerance defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance. If Tolerance is omitted, a direct comparison algorithm is used.

var A,B: TMtxInt; c: boolean; begin CreateIt(A,B); try A.SetIt(2,2,[1,2, 2,4]); // 2x2, int matrix B.SetIt(2,2,[1,2, 2,4]); // 2x2, int matrix c := A.Equal(B); // Check for an exact match finally FreeIt(A,B); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!